package com.luoc.service;

/**
 * @Author: luoc
 * @Date: 2019/9/26 15:19
 */
public abstract class Handler {
    public Handler handler;

    /**
     * 设置 successor 接下来的处理责任者
      * @param handler
     */
    public void setHandler(Handler handler) {
        this.handler = handler;
    }

    /**
     *  处理请求
     */
    public abstract void handleRequest(String request);
}
